package com.choudou5.solr.web.handler.example;

import com.choudou5.solr.api.SearchApi;
import com.choudou5.solr.framework.constants.ErrorResp;
import com.choudou5.solr.framework.util.PageJumpUtil;
import com.choudou5.solr.web.handler.BaseHandler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @name 问题库
 * @author choudou5
 * @date 2018-08-06
 */
public class QaHandler extends BaseHandler {

    private final SearchApi searchApi = SearchApi.getInstance();

    @Override
    public void execute(String bizMethod, HttpServletRequest req, HttpServletResponse resp) {
        logger.info("QaHandler bizMethod:{}", bizMethod);
        switch (bizMethod){
            case "search":
//                search(req, resp);
                break;
            default:
                PageJumpUtil.errorOut(ErrorResp.Not_Found, req, resp);
                break;
        }
    }




}
